﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainTemplate.Master" AutoEventWireup="true" CodeBehind="BillingInfoManagement.aspx.cs" Inherits="SmartCounters.BillingInfoManagement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ScriptsAndStylesPlaceHolder" runat="server">
	<link rel="stylesheet" type="text/css" href="/css/BillingInfoManagement.css" />
	<script type="text/javascript" src="/Scripts/BillingInfoManagement.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
Billing Information Management
</asp:Content>

<asp:Content ID="BillingInfoManagement" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<asp:UpdatePanel ID="BillingInfoManagementUpdatePanel" runat="server">
<ContentTemplate>
	<div>
		<asp:Button class="Button" ID="btSetNewPrice" Text="Set New Price" runat="server"  />
	</div>
	<asp:DataGrid 
		id="BillingInfoGrid" 
		CssClass="DataTable"
		BorderStyle="None" 
		GridLines="None"
		UseAccessibleHeader="true" 
		AutoGenerateColumns="false"
		HeaderStyle-HorizontalAlign="Left" 
		runat="server">
                  
	<HeaderStyle CssClass="Header" />      
        
	<Columns>
		<asp:BoundColumn HeaderText="Start Date" DataField="StartDate" HeaderStyle-Width="15%" ReadOnly="true"  />
		<asp:BoundColumn HeaderText="End Date" DataField="EndDate" HeaderStyle-Width="15%" ReadOnly="true"  />
		<asp:BoundColumn HeaderText="Price for Liter" DataField="PriceForLiter" HeaderStyle-Width="20%" />
		<asp:BoundColumn HeaderText="Comments" DataField="Comments" HeaderStyle-Width="50%" />
	</Columns>
	</asp:DataGrid>

	<div id="AddNewBillingInfoContainer" class="Hidden">
	<fieldset id="AddNewBillingInfoFieldset" class="AddNewBillingInfoFieldset shadow">
	<legend>Set New Billing Information</legend>
		<div><asp:Label ID="lblPrice" runat="server">Price for Liter: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbPrice" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblComments" runat="server">Comments: </asp:Label></div>
		<div><asp:TextBox class="TextArea" ID="tbComments" Rows="5" TextMode="MultiLine" runat="server"></asp:TextBox></div>

		<div>
			<asp:Button class="Button" ID="btAdd" Text="Set Price" OnClick="AddBillingInfo" runat="server"  />
		</div>
	</fieldset>
	</div>
</ContentTemplate>
<Triggers>
	<asp:AsyncPostBackTrigger ControlID="btAdd" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</asp:Content>
